import request from "@/utils/request.js";

export const getOrderAPI = () =>
  request('/member/order/pre')

export const getAddressAPI = () =>
  request('/member/address')

export const changeAddressAPI = (data) =>
  request.put(`/member/address/${data.id}`, data)

export const addAddressAPI = (data) =>
  request.post(`/member/address`, data)

export const submitOrderAPI = (data) =>
  request.post(`/member/order`, data)
